projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53348c6
)
; xref-collect-matches: Add a TODO
author
Dmitry Gutov
<dgutov@yandex.ru>
Thu, 4 May 2017 15:26:46 +0000
(18:26 +0300)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Thu, 4 May 2017 15:27:15 +0000
(18:27 +0300)
lisp/progmodes/xref.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/xref.el
b/lisp/progmodes/xref.el
index a12fa14620328bca7c19ec6e616ed49aa4199126..9b6a560971c092e873084bddd73b0b6d1314966d 100644
(file)
--- a/
lisp/progmodes/xref.el
+++ b/
lisp/progmodes/xref.el
@@
-920,6
+920,9
@@
IGNORES is a list of glob patterns."
(let* ((grep-find-template (replace-regexp-in-string "<C>" "<C> -E"
grep-find-template t t))
(grep-highlight-matches nil)
+ ;; TODO: Sanitize the regexp to remove Emacs-specific terms,
+ ;; so that Grep can search for the "relaxed" version. Can we
+ ;; do that reliably enough, without creating false negatives?
(command (xref--rgrep-command (xref--regexp-to-extended regexp)
files
(expand-file-name dir)